package com.fr.design.plugin.sap;

import com.fr.design.data.datapane.connect.DatabaseConnectionPane;
import com.fr.data.impl.sap.SAPDatabaseConnection;

import javax.swing.*;

/**
 * @author : richie
 * @since : 8.0
 */
public class SAPConnectionPane extends DatabaseConnectionPane<SAPDatabaseConnection> {
    private static SAPDefPane SAPDefPane = new SAPDefPane();

    @Override
    protected JPanel mainPanel() {
        return SAPDefPane;
    }

    @Override
    protected boolean isFineBI() {
        return false;
    }

    @Override
    protected void populateSubDatabaseConnectionBean(SAPDatabaseConnection ob) {
        SAPDefPane.populate(ob);
    }

    @Override
    protected SAPDatabaseConnection updateSubDatabaseConnectionBean() {
        return SAPDefPane.update();
    }

    @Override
    protected String title4PopupWindow() {
        return "SAP";
    }
}
